package com.jet.chat.db;

import com.jet.chat.exception.ChatExceptionDBService;
import com.jet.chat.service.DBQueryService;
import com.jet.chat.service.DBConnectionService;

//[ek] TODO WTF!!! It's not production logic. Please remove to build scripts.
public class ChatHistoryCreate {

	public static void main(String[] args) {
		DBConnectionService dbConnectionService = new DBConnectionService("chatdb");
		try {
			dbConnectionService.createConnection();
			DBQueryService.execUPD(dbConnectionService, "create table history (id int primary key not null, senderid int, receiverid int, channelname varchar(100), content clob)");
			dbConnectionService.shutdown();
		} catch (ChatExceptionDBService e) {
			e.printStackTrace();
		}
	}

}
